dofile ("libTextBox.lua")

TextBox.init (1, 5, 5, 100, 15, 1, Color.new(0, 31, 0), Color.new(31, 0, 0)) 

while not Keys.newPress.Start do
   
  Controls.read()
  
  startDrawing()
    
    TextBox.draw (1)
	
	screen.print(SCREEN_UP, 5, 5, "Texte :")
	screen.drawTextBox(SCREEN_UP, 5, 25, 256, 192, TextBox.text(1))
    
  stopDrawing()

end

TextBox.clear (1)
